﻿@model HotelRegistrationSystem.Models.LoginModel

@{
   ViewBag.Title = "Login";
}

<hgroup class="title">
   <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <div class="row">
       <div class="six columns">
           <div class="row">
               <div class="six columns">
                   @Html.LabelFor(m => m.UserName)
                   @Html.TextBoxFor(m => m.UserName, new { placeholder = "Username" })
                   @Html.ValidationMessageFor(m => m.UserName)
               </div>
               <div class="six columns">
                   @Html.LabelFor(m => m.Password)
                   @Html.PasswordFor(m => m.Password, new { placeholder = "Password" })
                   @Html.ValidationMessageFor(m => m.Password)
               </div>
           </div>
       </div>
   </div>
   <input type="submit" value="Login" class="button success" />
   <p>
       @Html.ActionLink("Sing up!", "Register") if you don't have an account.
       <br />
       @Html.ActionLink("Lost your Password?", "ForgotPassword") if you have lost your password, we shall email you a new one.
   </p>
}
</section>

@*<section class="social" id="socialLoginForm">
   <h2>Use another service to log in.</h2>
   @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>*@

@section Scripts {
   @Scripts.Render("~/bundles/jqueryval")
}